import Vine
def Test(self,sym,state,id):
	print "fuck"
	Vine.SwitchForwardFilter(self,id,0)
	return Vine.FE_SUCCEED
class IMEObject:
	def PreeditTextChanged(self,s):
		Vine.UpdatePrecommitText(self,s)
		Vine.UpdateCandidates(self,["1","2","3"])
	def Enabled(self):
		Vine.SetTrayIcon(self,"./image/eng.jpg")
		Vine.RegisterForwardFilter(self,32,33,Vine.IMStateAll,Vine.IMStateNone,Vine.IMKeyActionPress,Test)

def Create():
	return IMEObject()
